package org.yn.mkt.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.yn.base.domain.BaseDomain;


import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.yn.sys.domain.Dictionaryitem;

import static org.apache.catalina.util.ConcurrentDateFormat.GMT;


/**
 * <p>
 * 
 * </p>
 *
 * @author yn
 * @since 2023-07-31
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class Activity extends BaseDomain{

    private static final long serialVersionUID = 1L;

    private Long id;
    private String name;
    /**
     * 活动的优惠方式  关联数据字典表
     */
    private Dictionaryitem dictionaryitem;
    /**
     * 满足条件
     */
    private BigDecimal enoughPrice;
    /**
     * 优惠价格
     */
    private BigDecimal preferentiaprice;
    @JsonFormat(pattern = "yyyy-MM-dd HH-mm-ss",timezone="GMT+8")
    private Date startDate;
    @JsonFormat(pattern = "yyyy-MM-dd HH-mm-ss",timezone="GMT+8")
    private Date endDate;
    private String description;
    @JsonFormat(pattern = "yyyy-MM-dd HH-mm-ss",timezone="GMT+8")
    private Date createTime;
    /**
     * 谁创建的活动
     */
    private Long createBy;
    private Date editTime;
    /**
     * 谁最后一次修改
     */
    private Long editBy;

    private Integer type;


}
